/*
 * @Description: 混入按钮级别权限
 * @Version: @1.0.0
 * @Autor: YJY
 * @Date: 2021-07-13 09:33:15
 * @LastEditors: YJY
 * @LastEditTime: 2021-07-13 11:00:07
 */
import store from '@/store'
export default {
  methods: {
    checkPermission(key) {
      const { userinfo } = store.state.user
      if (userinfo.roles.points && userinfo.roles.points.length) {
        return userinfo.roles.points.some(item => item === key)
      }
      return false
    }
  }
}
